package com.wuyou.designPatterns.proxy;

/**
 * Main
 *
 * @Date 2024/10/18 14:49
 * @Author 无忧
 */
public class Main {


    public static void main(String[] args) {
        Printable p = new PrinterProxy("Alice");
        System.out.println("现在的名字是 " + p.getPrinterName() + ".");
        p.setPrintName("Bob");
        System.out.println("现在的名字是 " + p.getPrinterName() + ".");
        p.print("Hello World!");
    }
}
